package com.zyxx;

import com.zyxx.sys.mapper.SysPermissionInfoMapper;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 测试用的CommonLineRunner，仅用来执行一次SQL语句
 */
@Service
public class MyConmmonRunner implements CommandLineRunner {

	@Resource
	SysPermissionInfoMapper SysPermissionInfoMapper;

	@Override
	public void run(String... args) throws Exception {

		SysPermissionInfoMapper.listPermissionForTree(1);
	}
}
